home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-10-29 | 4.8 KB | [ TEXT/PJMM]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
ZX81 Sinclair BASIC (image/sinclairBASIC)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Applause Picture (image/applausePicture)
ext
Unsupported
1%
dexvert
bsdiff patch (other/bsdiffPatch)
ext
Unsupported
1%
dexvert
imgdiff patch (other/imgdiffPatch)
ext
Unsupported
1%
dexvert
MATLAB p-code (other/matlabPCode)
ext
Unsupported
1%
dexvert
WSUS Patch Storage File (other/wsusPatchStorageFile)
ext
Unsupported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sat Oct 29 23:21:31 1994, modified Sat Oct 29 23:21:31 1994, creator Think Pascal, type ASCII, 4144 bytes "ICStrh.p" , at 0x10b0 478 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ PJMM]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 08 49 43 53 74 72 68 | 2e 70 00 00 00 00 00 00 |..ICStrh|.p......| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 50 4a 4d | 4d 01 00 00 00 00 00 00 |.TEXTPJM|M.......| |00000050| 00 00 00 00 00 10 30 00 | 00 01 de aa d8 c1 bb aa |......0.|........| |00000060| d8 c1 bb 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e3 77 00 00 |........|.....w..| |00000080| 75 6e 69 74 20 49 43 53 | 74 72 48 3b 0d 0d 69 6e |unit ICS|trH;..in| |00000090| 74 65 72 66 61 63 65 0d | 0d 7b 24 69 66 63 20 75 |terface.|.{$ifc u| |000000a0| 6e 64 65 66 69 6e 65 64 | 20 54 48 49 4e 4b 5f 50 |ndefined| THINK_P| |000000b0| 61 73 63 61 6c 7d 0d 09 | 75 73 65 73 0d 09 09 54 |ascal}..|uses...T| |000000c0| 79 70 65 73 3b 0d 7b 24 | 65 6e 64 63 7d 0d 0d 09 |ypes;.{$|endc}...| |000000d0| 74 79 70 65 0d 09 09 6c | 69 6e 65 49 6e 64 65 78 |type...l|ineIndex| |000000e0| 20 3d 20 69 6e 74 65 67 | 65 72 3b 0d 0d 09 66 75 | = integ|er;...fu| |000000f0| 6e 63 74 69 6f 6e 20 4e | 65 77 53 74 72 48 3a 20 |nction N|ewStrH: | |00000100| 68 61 6e 64 6c 65 3b 0d | 09 70 72 6f 63 65 64 75 |handle;.|.procedu| |00000110| 72 65 20 52 65 69 6e 69 | 74 53 74 72 48 20 28 68 |re Reini|tStrH (h| |00000120| 3a 20 68 61 6e 64 6c 65 | 29 3b 0d 09 66 75 6e 63 |: handle|);..func| |00000130| 74 69 6f 6e 20 43 6f 75 | 6e 74 53 74 72 73 20 28 |tion Cou|ntStrs (| |00000140| 69 64 3a 20 69 6e 74 65 | 67 65 72 29 3a 20 6c 69 |id: inte|ger): li| |00000150| 6e 65 49 6e 64 65 78 3b | 0d 09 66 75 6e 63 74 69 |neIndex;|..functi| |00000160| 6f 6e 20 43 6f 75 6e 74 | 53 74 72 73 48 20 28 68 |on Count|StrsH (h| |00000170| 3a 20 68 61 6e 64 6c 65 | 29 3a 20 6c 69 6e 65 49 |: handle|): lineI| |00000180| 6e 64 65 78 3b 0d 09 66 | 75 6e 63 74 69 6f 6e 20 |ndex;..f|unction | |00000190| 47 65 74 49 6e 64 53 74 | 72 20 28 69 64 3a 20 69 |GetIndSt|r (id: i| |000001a0| 6e 74 65 67 65 72 3b 20 | 69 6e 64 65 78 3a 20 6c |nteger; |index: l| |000001b0| 69 6e 65 49 6e 64 65 78 | 29 3a 20 73 74 72 32 35 |ineIndex|): str25| |000001c0| 35 3b 0d 09 66 75 6e 63 | 74 69 6f 6e 20 47 65 74 |5;..func|tion Get| |000001d0| 49 6e 64 53 74 72 48 20 | 28 68 3a 20 68 61 6e 64 |IndStrH |(h: hand| |000001e0| 6c 65 3b 20 69 6e 64 65 | 78 3a 20 6c 69 6e 65 49 |le; inde|x: lineI| |000001f0| 6e 64 65 78 29 3a 20 73 | 74 72 32 35 35 3b 0d 09 |ndex): s|tr255;..| |00000200| 70 72 6f 63 65 64 75 72 | 65 20 53 65 74 49 6e 64 |procedur|e SetInd| |00000210| 53 74 72 20 28 69 64 2c | 20 69 6e 64 65 78 3a 20 |Str (id,| index: | |00000220| 6c 69 6e 65 49 6e 64 65 | 78 3b 20 73 3a 20 73 74 |lineInde|x; s: st| |00000230| 72 32 35 35 29 3b 0d 09 | 70 72 6f 63 65 64 75 72 |r255);..|procedur| |00000240| 65 20 53 65 74 49 6e 64 | 53 74 72 48 20 28 68 3a |e SetInd|StrH (h:| |00000250| 20 68 61 6e 64 6c 65 3b | 20 69 6e 64 65 78 3a 20 | handle;| index: | |00000260| 6c 69 6e 65 49 6e 64 65 | 78 3b 20 73 3a 20 73 74 |lineInde|x; s: st| |00000270| 72 32 35 35 29 3b 0d 09 | 70 72 6f 63 65 64 75 72 |r255);..|procedur| |00000280| 65 20 44 65 6c 49 6e 64 | 53 74 72 20 28 69 64 3a |e DelInd|Str (id:| |00000290| 20 69 6e 74 65 67 65 72 | 3b 20 69 6e 64 65 78 3a | integer|; index:| |000002a0| 20 6c 69 6e 65 49 6e 64 | 65 78 29 3b 0d 09 70 72 | lineInd|ex);..pr| |000002b0| 6f 63 65 64 75 72 65 20 | 44 65 6c 49 6e 64 53 74 |ocedure |DelIndSt| |000002c0| 72 48 20 28 68 3a 20 68 | 61 6e 64 6c 65 3b 20 69 |rH (h: h|andle; i| |000002d0| 6e 64 65 78 3a 20 6c 69 | 6e 65 49 6e 64 65 78 29 |ndex: li|neIndex)| |000002e0| 3b 0d 09 70 72 6f 63 65 | 64 75 72 65 20 49 6e 73 |;..proce|dure Ins| |000002f0| 49 6e 64 53 74 72 69 6e | 67 20 28 69 64 3a 20 69 |IndStrin|g (id: i| |00000300| 6e 74 65 67 65 72 3b 20 | 69 6e 64 65 78 3a 20 6c |nteger; |index: l| |00000310| 69 6e 65 49 6e 64 65 78 | 3b 20 73 3a 20 73 74 72 |ineIndex|; s: str| |00000320| 32 35 35 29 3b 0d 09 70 | 72 6f 63 65 64 75 72 65 |255);..p|rocedure| |00000330| 20 49 6e 73 49 6e 64 53 | 74 72 48 20 28 68 3a 20 | InsIndS|trH (h: | |00000340| 68 61 6e 64 6c 65 3b 20 | 69 6e 64 65 78 3a 20 69 |handle; |index: i| |00000350| 6e 74 65 67 65 72 3b 20 | 73 3a 20 73 74 72 32 35 |nteger; |s: str25| |00000360| 35 29 3b 0d 0d 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |5);..imp|lementat| |00000370| 69 6f 6e 0d 0d 7b 24 69 | 66 63 20 75 6e 64 65 66 |ion..{$i|fc undef| |00000380| 69 6e 65 64 20 54 48 49 | 4e 4b 5f 50 61 73 63 61 |ined THI|NK_Pasca| |00000390| 6c 7d 0d 09 75 73 65 73 | 0d 09 09 4d 65 6d 6f 72 |l}..uses|...Memor| |000003a0| 79 2c 20 52 65 73 6f 75 | 72 63 65 73 2c 20 54 6f |y, Resou|rces, To| |000003b0| 6f 6c 55 74 69 6c 73 3b | 0d 7b 24 65 6e 64 63 7d |olUtils;|.{$endc}| |000003c0| 0d 0d 09 74 79 70 65 0d | 09 09 69 6e 64 65 78 50 |...type.|..indexP| |000003d0| 74 72 20 3d 20 5e 6c 69 | 6e 65 49 6e 64 65 78 3b |tr = ^li|neIndex;| |000003e0| 0d 09 09 69 6e 64 65 78 | 48 61 6e 64 6c 65 20 3d |...index|Handle =| |000003f0| 20 5e 69 6e 64 65 78 50 | 74 72 3b 0d 0d 09 66 75 | ^indexP|tr;...fu| |00000400| 6e 63 74 69 6f 6e 20 4e | 65 77 53 74 72 48 3a 20 |nction N|ewStrH: | |00000410| 68 61 6e 64 6c 65 3b 0d | 09 62 65 67 69 6e 0d 09 |handle;.|.begin..| |00000420| 09 4e 65 77 53 74 72 48 | 20 3a 3d 20 4e 65 77 48 |.NewStrH| := NewH| |00000430| 61 6e 64 6c 65 43 6c 65 | 61 72 28 53 69 7a 65 4f |andleCle|ar(SizeO| |00000440| 66 28 6c 69 6e 65 49 6e | 64 65 78 29 29 3b 0d 09 |f(lineIn|dex));..| |00000450| 65 6e 64 3b 0d 0d 09 70 | 72 6f 63 65 64 75 72 65 |end;...p|rocedure| |00000460| 20 52 65 69 6e 69 74 53 | 74 72 48 20 28 68 3a 20 | ReinitS|trH (h: | |00000470| 68 61 6e 64 6c 65 29 3b | 0d 09 62 65 67 69 6e 0d |handle);|..begin.| |00000480| 09 09 53 65 74 48 61 6e | 64 6c 65 53 69 7a 65 28 |..SetHan|dleSize(| |00000490| 68 2c 20 53 69 7a 65 4f | 66 28 6c 69 6e 65 49 6e |h, SizeO|f(lineIn| |000004a0| 64 65 78 29 29 3b 0d 09 | 09 69 6e 64 65 78 48 61 |dex));..|.indexHa| |000004b0| 6e 64 6c 65 28 68 29 5e | 5e 20 3a 3d 20 30 3b 0d |ndle(h)^|^ := 0;.| |000004c0| 09 65 6e 64 3b 0d 0d 09 | 66 75 6e 63 74 69 6f 6e |.end;...|function| |000004d0| 20 43 6f 75 6e 74 53 74 | 72 73 48 20 28 68 3a 20 | CountSt|rsH (h: | |000004e0| 68 61 6e 64 6c 65 29 3a | 20 69 6e 74 65 67 65 72 |handle):| integer| |000004f0| 3b 0d 09 62 65 67 69 6e | 0d 09 09 43 6f 75 6e 74 |;..begin|...Count| |00000500| 53 74 72 73 48 20 3a 3d | 20 69 6e 64 65 78 48 61 |StrsH :=| indexHa| |00000510| 6e 64 6c 65 28 68 29 5e | 5e 3b 0d 09 65 6e 64 3b |ndle(h)^|^;..end;| |00000520| 0d 0d 09 66 75 6e 63 74 | 69 6f 6e 20 43 6f 75 6e |...funct|ion Coun| |00000530| 74 53 74 72 73 20 28 69 | 64 3a 20 69 6e 74 65 67 |tStrs (i|d: integ| |00000540| 65 72 29 3a 20 6c 69 6e | 65 49 6e 64 65 78 3b 0d |er): lin|eIndex;.| |00000550| 09 09 76 61 72 0d 09 09 | 09 68 3a 20 68 61 6e 64 |..var...|.h: hand| |00000560| 6c 65 3b 0d 09 62 65 67 | 69 6e 0d 09 09 68 20 3a |le;..beg|in...h :| |00000570| 3d 20 47 65 74 52 65 73 | 6f 75 72 63 65 28 27 53 |= GetRes|ource('S| |00000580| 54 52 23 27 2c 20 69 64 | 29 3b 0d 09 09 43 6f 75 |TR#', id|);...Cou| |00000590| 6e 74 53 74 72 73 20 3a | 3d 20 69 6e 64 65 78 48 |ntStrs :|= indexH| |000005a0| 61 6e 64 6c 65 28 68 29 | 5e 5e 3b 0d 09 65 6e 64 |andle(h)|^^;..end| |000005b0| 3b 0d 0d 09 66 75 6e 63 | 74 69 6f 6e 20 47 65 74 |;...func|tion Get| |000005c0| 49 6e 64 53 74 72 20 28 | 69 64 3a 20 69 6e 74 65 |IndStr (|id: inte| |000005d0| 67 65 72 3b 20 69 6e 64 | 65 78 3a 20 6c 69 6e 65 |ger; ind|ex: line| |000005e0| 49 6e 64 65 78 29 3a 20 | 73 74 72 32 35 35 3b 0d |Index): |str255;.| |000005f0| 09 09 76 61 72 0d 09 09 | 09 73 3a 20 73 74 72 32 |..var...|.s: str2| |00000600| 35 35 3b 0d 09 62 65 67 | 69 6e 0d 09 09 47 65 74 |55;..beg|in...Get| |00000610| 49 6e 64 53 74 72 69 6e | 67 28 73 2c 20 69 64 2c |IndStrin|g(s, id,| |00000620| 20 69 6e 64 65 78 29 3b | 0d 09 09 47 65 74 49 6e | index);|...GetIn| |00000630| 64 53 74 72 20 3a 3d 20 | 73 3b 0d 09 65 6e 64 3b |dStr := |s;..end;| |00000640| 0d 0d 09 66 75 6e 63 74 | 69 6f 6e 20 47 65 74 49 |...funct|ion GetI| |00000650| 6e 64 53 74 72 48 20 28 | 68 3a 20 68 61 6e 64 6c |ndStrH (|h: handl| |00000660| 65 3b 20 69 6e 64 65 78 | 3a 20 6c 69 6e 65 49 6e |e; index|: lineIn| |00000670| 64 65 78 29 3a 20 73 74 | 72 32 35 35 3b 0d 09 09 |dex): st|r255;...| |00000680| 76 61 72 0d 09 09 09 63 | 6f 75 6e 74 2c 20 69 3a |var....c|ount, i:| |00000690| 20 6c 69 6e 65 49 6e 64 | 65 78 3b 0d 09 09 09 73 | lineInd|ex;....s| |000006a0| 3a 20 73 74 72 32 35 35 | 3b 0d 09 09 09 70 73 3a |: str255|;....ps:| |000006b0| 20 6c 6f 6e 67 49 6e 74 | 3b 0d 09 62 65 67 69 6e | longInt|;..begin| |000006c0| 0d 09 09 63 6f 75 6e 74 | 20 3a 3d 20 69 6e 64 65 |...count| := inde| |000006d0| 78 48 61 6e 64 6c 65 28 | 68 29 5e 5e 3b 0d 09 09 |xHandle(|h)^^;...| |000006e0| 69 66 20 28 31 20 3c 3d | 20 69 6e 64 65 78 29 20 |if (1 <=| index) | |000006f0| 61 6e 64 20 28 69 6e 64 | 65 78 20 3c 3d 20 63 6f |and (ind|ex <= co| |00000700| 75 6e 74 29 20 74 68 65 | 6e 20 62 65 67 69 6e 0d |unt) the|n begin.| |00000710| 09 09 09 70 73 20 3a 3d | 20 53 69 7a 65 4f 66 28 |...ps :=| SizeOf(| |00000720| 6c 69 6e 65 49 6e 64 65 | 78 29 3b 0d 09 09 09 66 |lineInde|x);....f| |00000730| 6f 72 20 69 20 3a 3d 20 | 31 20 74 6f 20 69 6e 64 |or i := |1 to ind| |00000740| 65 78 20 2d 20 31 20 64 | 6f 0d 09 09 09 09 70 73 |ex - 1 d|o.....ps| |00000750| 20 3a 3d 20 70 73 20 2b | 20 42 41 4e 44 28 70 74 | := ps +| BAND(pt| |00000760| 72 28 6f 72 64 28 68 5e | 29 20 2b 20 70 73 29 5e |r(ord(h^|) + ps)^| |00000770| 2c 20 24 46 46 29 20 2b | 20 31 3b 0d 09 09 09 42 |, $FF) +| 1;....B| |00000780| 6c 6f 63 6b 4d 6f 76 65 | 28 70 74 72 28 6f 72 64 |lockMove|(ptr(ord| |00000790| 28 68 5e 29 20 2b 20 70 | 73 29 2c 20 40 73 2c 20 |(h^) + p|s), @s, | |000007a0| 42 41 4e 44 28 70 74 72 | 28 6f 72 64 28 68 5e 29 |BAND(ptr|(ord(h^)| |000007b0| 20 2b 20 70 73 29 5e 2c | 20 24 46 46 29 20 2b 20 | + ps)^,| $FF) + | |000007c0| 31 29 3b 0d 09 09 65 6e | 64 0d 09 09 65 6c 73 65 |1);...en|d...else| |000007d0| 0d 09 09 09 73 20 3a 3d | 20 27 27 3b 0d 09 09 47 |....s :=| '';...G| |000007e0| 65 74 49 6e 64 53 74 72 | 48 20 3a 3d 20 73 3b 0d |etIndStr|H := s;.| |000007f0| 09 65 6e 64 3b 0d 0d 09 | 70 72 6f 63 65 64 75 72 |.end;...|procedur| |00000800| 65 20 53 65 74 49 6e 64 | 53 74 72 48 20 28 68 3a |e SetInd|StrH (h:| |00000810| 20 68 61 6e 64 6c 65 3b | 20 69 6e 64 65 78 3a 20 | handle;| index: | |00000820| 6c 69 6e 65 49 6e 64 65 | 78 3b 20 73 3a 20 73 74 |lineInde|x; s: st| |00000830| 72 32 35 35 29 3b 0d 09 | 09 76 61 72 0d 09 09 09 |r255);..|.var....| |00000840| 63 6f 75 6e 74 2c 20 69 | 3a 20 6c 69 6e 65 49 6e |count, i|: lineIn| |00000850| 64 65 78 3b 0d 09 09 09 | 73 7a 3a 20 6c 6f 6e 67 |dex;....|sz: long| |00000860| 49 6e 74 3b 0d 09 09 09 | 70 3a 20 6c 6f 6e 67 49 |Int;....|p: longI| |00000870| 6e 74 3b 0d 09 09 09 65 | 72 72 3a 20 6c 6f 6e 67 |nt;....e|rr: long| |00000880| 49 6e 74 3b 0d 09 09 09 | 70 73 3a 20 6c 6f 6e 67 |Int;....|ps: long| |00000890| 49 6e 74 3b 0d 09 62 65 | 67 69 6e 0d 09 09 63 6f |Int;..be|gin...co| |000008a0| 75 6e 74 20 3a 3d 20 69 | 6e 64 65 78 48 61 6e 64 |unt := i|ndexHand| |000008b0| 6c 65 28 68 29 5e 5e 3b | 0d 09 09 73 7a 20 3a 3d |le(h)^^;|...sz :=| |000008c0| 20 47 65 74 48 61 6e 64 | 6c 65 53 69 7a 65 28 68 | GetHand|leSize(h| |000008d0| 29 3b 0d 09 09 69 66 20 | 63 6f 75 6e 74 20 3c 20 |);...if |count < | |000008e0| 69 6e 64 65 78 20 74 68 | 65 6e 20 62 65 67 69 6e |index th|en begin| |000008f0| 0d 09 09 09 53 65 74 48 | 61 6e 64 6c 65 53 69 7a |....SetH|andleSiz| |00000900| 65 28 68 2c 20 73 7a 20 | 2b 20 69 6e 64 65 78 20 |e(h, sz |+ index | |00000910| 2d 20 63 6f 75 6e 74 29 | 3b 0d 09 09 09 66 6f 72 |- count)|;....for| |00000920| 20 70 20 3a 3d 20 6f 72 | 64 28 68 5e 29 20 2b 20 | p := or|d(h^) + | |00000930| 73 7a 20 74 6f 20 6f 72 | 64 28 68 5e 29 20 2b 20 |sz to or|d(h^) + | |00000940| 73 7a 20 2b 20 69 6e 64 | 65 78 20 2d 20 63 6f 75 |sz + ind|ex - cou| |00000950| 6e 74 20 2d 20 31 20 64 | 6f 0d 09 09 09 09 70 74 |nt - 1 d|o.....pt| |00000960| 72 28 70 29 5e 20 3a 3d | 20 30 3b 0d 09 09 09 69 |r(p)^ :=| 0;....i| |00000970| 6e 64 65 78 48 61 6e 64 | 6c 65 28 68 29 5e 5e 20 |ndexHand|le(h)^^ | |00000980| 3a 3d 20 69 6e 64 65 78 | 3b 0d 09 09 09 63 6f 75 |:= index|;....cou| |00000990| 6e 74 20 3a 3d 20 69 6e | 64 65 78 3b 0d 09 09 65 |nt := in|dex;...e| |000009a0| 6e 64 3b 0d 09 09 70 73 | 20 3a 3d 20 53 69 7a 65 |nd;...ps| := Size| |000009b0| 4f 66 28 6c 69 6e 65 49 | 6e 64 65 78 29 3b 0d 09 |Of(lineI|ndex);..| |000009c0| 09 66 6f 72 20 69 20 3a | 3d 20 31 20 74 6f 20 69 |.for i :|= 1 to i| |000009d0| 6e 64 65 78 20 2d 20 31 | 20 64 6f 0d 09 09 09 70 |ndex - 1| do....p| |000009e0| 73 20 3a 3d 20 70 73 20 | 2b 20 42 41 4e 44 28 70 |s := ps |+ BAND(p| |000009f0| 74 72 28 6f 72 64 28 68 | 5e 29 20 2b 20 70 73 29 |tr(ord(h|^) + ps)| |00000a00| 5e 2c 20 24 46 46 29 20 | 2b 20 31 3b 0d 09 09 65 |^, $FF) |+ 1;...e| |00000a10| 72 72 20 3a 3d 20 4d 75 | 6e 67 65 72 28 68 2c 20 |rr := Mu|nger(h, | |00000a20| 70 73 2c 20 6e 69 6c 2c | 20 42 41 4e 44 28 70 74 |ps, nil,| BAND(pt| |00000a30| 72 28 6f 72 64 28 68 5e | 29 20 2b 20 70 73 29 5e |r(ord(h^|) + ps)^| |00000a40| 2c 20 24 46 46 29 20 2b | 20 31 2c 20 40 73 2c 20 |, $FF) +| 1, @s, | |00000a50| 6c 65 6e 67 74 68 28 73 | 29 20 2b 20 31 29 3b 0d |length(s|) + 1);.| |00000a60| 09 65 6e 64 3b 0d 0d 09 | 70 72 6f 63 65 64 75 72 |.end;...|procedur| |00000a70| 65 20 53 65 74 49 6e 64 | 53 74 72 20 28 69 64 2c |e SetInd|Str (id,| |00000a80| 20 69 6e 64 65 78 3a 20 | 6c 69 6e 65 49 6e 64 65 | index: |lineInde| |00000a90| 78 3b 20 73 3a 20 73 74 | 72 32 35 35 29 3b 0d 09 |x; s: st|r255);..| |00000aa0| 09 76 61 72 0d 09 09 09 | 68 3a 20 68 61 6e 64 6c |.var....|h: handl| |00000ab0| 65 3b 0d 09 62 65 67 69 | 6e 0d 09 09 68 20 3a 3d |e;..begi|n...h :=| |00000ac0| 20 47 65 74 52 65 73 6f | 75 72 63 65 28 27 53 54 | GetReso|urce('ST| |00000ad0| 52 23 27 2c 20 69 64 29 | 3b 0d 09 09 48 4e 6f 50 |R#', id)|;...HNoP| |00000ae0| 75 72 67 65 28 68 29 3b | 0d 09 09 53 65 74 49 6e |urge(h);|...SetIn| |00000af0| 64 53 74 72 48 28 68 2c | 20 69 6e 64 65 78 2c 20 |dStrH(h,| index, | |00000b00| 73 29 3b 0d 09 09 48 50 | 75 72 67 65 28 68 29 3b |s);...HP|urge(h);| |00000b10| 0d 09 09 43 68 61 6e 67 | 65 64 52 65 73 6f 75 72 |...Chang|edResour| |00000b20| 63 65 28 68 29 3b 0d 09 | 09 57 72 69 74 65 52 65 |ce(h);..|.WriteRe| |00000b30| 73 6f 75 72 63 65 28 68 | 29 3b 0d 09 65 6e 64 3b |source(h|);..end;| |00000b40| 0d 0d 09 70 72 6f 63 65 | 64 75 72 65 20 44 65 6c |...proce|dure Del| |00000b50| 49 6e 64 53 74 72 48 20 | 28 68 3a 20 68 61 6e 64 |IndStrH |(h: hand| |00000b60| 6c 65 3b 20 69 6e 64 65 | 78 3a 20 69 6e 74 65 67 |le; inde|x: integ| |00000b70| 65 72 29 3b 0d 09 09 76 | 61 72 0d 09 09 09 63 6f |er);...v|ar....co| |00000b80| 75 6e 74 2c 20 69 3a 20 | 6c 69 6e 65 49 6e 64 65 |unt, i: |lineInde| |00000b90| 78 3b 0d 09 09 09 73 7a | 3a 20 6c 6f 6e 67 49 6e |x;....sz|: longIn| |00000ba0| 74 3b 0d 09 09 09 65 72 | 72 3a 20 6c 6f 6e 67 49 |t;....er|r: longI| |00000bb0| 6e 74 3b 0d 09 09 09 70 | 73 3a 20 6c 6f 6e 67 49 |nt;....p|s: longI| |00000bc0| 6e 74 3b 0d 09 62 65 67 | 69 6e 0d 09 09 63 6f 75 |nt;..beg|in...cou| |00000bd0| 6e 74 20 3a 3d 20 69 6e | 64 65 78 48 61 6e 64 6c |nt := in|dexHandl| |00000be0| 65 28 68 29 5e 5e 3b 0d | 09 09 73 7a 20 3a 3d 20 |e(h)^^;.|..sz := | |00000bf0| 47 65 74 48 61 6e 64 6c | 65 53 69 7a 65 28 68 29 |GetHandl|eSize(h)| |00000c00| 3b 0d 09 09 69 66 20 63 | 6f 75 6e 74 20 3e 3d 20 |;...if c|ount >= | |00000c10| 69 6e 64 65 78 20 74 68 | 65 6e 20 62 65 67 69 6e |index th|en begin| |00000c20| 0d 09 09 09 70 73 20 3a | 3d 20 53 69 7a 65 4f 66 |....ps :|= SizeOf| |00000c30| 28 6c 69 6e 65 49 6e 64 | 65 78 29 3b 0d 09 09 09 |(lineInd|ex);....| |00000c40| 66 6f 72 20 69 20 3a 3d | 20 31 20 74 6f 20 69 6e |for i :=| 1 to in| |00000c50| 64 65 78 20 2d 20 31 20 | 64 6f 0d 09 09 09 09 70 |dex - 1 |do.....p| |00000c60| 73 20 3a 3d 20 70 73 20 | 2b 20 42 41 4e 44 28 70 |s := ps |+ BAND(p| |00000c70| 74 72 28 6f 72 64 28 68 | 5e 29 20 2b 20 70 73 29 |tr(ord(h|^) + ps)| |00000c80| 5e 2c 20 24 46 46 29 20 | 2b 20 31 3b 0d 09 09 09 |^, $FF) |+ 1;....| |00000c90| 65 72 72 20 3a 3d 20 4d | 75 6e 67 65 72 28 68 2c |err := M|unger(h,| |00000ca0| 20 70 73 2c 20 6e 69 6c | 2c 20 42 41 4e 44 28 70 | ps, nil|, BAND(p| |00000cb0| 74 72 28 6f 72 64 28 68 | 5e 29 20 2b 20 70 73 29 |tr(ord(h|^) + ps)| |00000cc0| 5e 2c 20 24 46 46 29 20 | 2b 20 31 2c 20 40 65 72 |^, $FF) |+ 1, @er| |00000cd0| 72 2c 20 30 29 3b 20 7b | 20 40 65 72 72 20 69 73 |r, 0); {| @err is| |00000ce0| 20 61 20 73 61 66 65 2c | 20 6e 6f 6e 20 6e 69 6c | a safe,| non nil| |00000cf0| 20 61 64 64 72 20 7d 0d | 09 09 09 69 6e 64 65 78 | addr }.|...index| |00000d00| 48 61 6e 64 6c 65 28 68 | 29 5e 5e 20 3a 3d 20 63 |Handle(h|)^^ := c| |00000d10| 6f 75 6e 74 20 2d 20 31 | 3b 0d 09 09 65 6e 64 3b |ount - 1|;...end;| |00000d20| 0d 09 65 6e 64 3b 0d 0d | 09 70 72 6f 63 65 64 75 |..end;..|.procedu| |00000d30| 72 65 20 44 65 6c 49 6e | 64 53 74 72 20 28 69 64 |re DelIn|dStr (id| |00000d40| 3a 20 69 6e 74 65 67 65 | 72 3b 20 69 6e 64 65 78 |: intege|r; index| |00000d50| 3a 20 6c 69 6e 65 49 6e | 64 65 78 29 3b 0d 09 09 |: lineIn|dex);...| |00000d60| 76 61 72 0d 09 09 09 68 | 3a 20 68 61 6e 64 6c 65 |var....h|: handle| |00000d70| 3b 0d 09 62 65 67 69 6e | 0d 09 09 68 20 3a 3d 20 |;..begin|...h := | |00000d80| 47 65 74 52 65 73 6f 75 | 72 63 65 28 27 53 54 52 |GetResou|rce('STR| |00000d90| 23 27 2c 20 69 64 29 3b | 0d 09 09 48 4e 6f 50 75 |#', id);|...HNoPu| |00000da0| 72 67 65 28 68 29 3b 0d | 09 09 44 65 6c 49 6e 64 |rge(h);.|..DelInd| |00000db0| 53 74 72 48 28 68 2c 20 | 69 6e 64 65 78 29 3b 0d |StrH(h, |index);.| |00000dc0| 09 09 48 50 75 72 67 65 | 28 68 29 3b 0d 09 09 43 |..HPurge|(h);...C| |00000dd0| 68 61 6e 67 65 64 52 65 | 73 6f 75 72 63 65 28 68 |hangedRe|source(h| |00000de0| 29 3b 0d 09 09 57 72 69 | 74 65 52 65 73 6f 75 72 |);...Wri|teResour| |00000df0| 63 65 28 68 29 3b 0d 09 | 65 6e 64 3b 0d 0d 09 70 |ce(h);..|end;...p| |00000e00| 72 6f 63 65 64 75 72 65 | 20 49 6e 73 49 6e 64 53 |rocedure| InsIndS| |00000e10| 74 72 48 20 28 68 3a 20 | 68 61 6e 64 6c 65 3b 20 |trH (h: |handle; | |00000e20| 69 6e 64 65 78 3a 20 69 | 6e 74 65 67 65 72 3b 20 |index: i|nteger; | |00000e30| 73 3a 20 73 74 72 32 35 | 35 29 3b 0d 09 09 76 61 |s: str25|5);...va| |00000e40| 72 0d 09 09 09 63 6f 75 | 6e 74 2c 20 69 3a 20 6c |r....cou|nt, i: l| |00000e50| 69 6e 65 49 6e 64 65 78 | 3b 0d 09 09 09 65 72 72 |ineIndex|;....err| |00000e60| 3a 20 6c 6f 6e 67 49 6e | 74 3b 0d 09 09 09 70 73 |: longIn|t;....ps| |00000e70| 3a 20 6c 6f 6e 67 49 6e | 74 3b 0d 09 09 09 74 3a |: longIn|t;....t:| |00000e80| 20 73 74 72 69 6e 67 5b | 32 5d 3b 0d 09 62 65 67 | string[|2];..beg| |00000e90| 69 6e 0d 09 09 63 6f 75 | 6e 74 20 3a 3d 20 69 6e |in...cou|nt := in| |00000ea0| 64 65 78 48 61 6e 64 6c | 65 28 68 29 5e 5e 3b 0d |dexHandl|e(h)^^;.| |00000eb0| 09 09 69 66 20 63 6f 75 | 6e 74 20 3e 3d 20 69 6e |..if cou|nt >= in| |00000ec0| 64 65 78 20 74 68 65 6e | 20 62 65 67 69 6e 0d 09 |dex then| begin..| |00000ed0| 09 09 70 73 20 3a 3d 20 | 53 69 7a 65 4f 66 28 6c |..ps := |SizeOf(l| |00000ee0| 69 6e 65 49 6e 64 65 78 | 29 3b 0d 09 09 09 66 6f |ineIndex|);....fo| |00000ef0| 72 20 69 20 3a 3d 20 31 | 20 74 6f 20 69 6e 64 65 |r i := 1| to inde| |00000f00| 78 20 2d 20 31 20 64 6f | 0d 09 09 09 09 70 73 20 |x - 1 do|.....ps | |00000f10| 3a 3d 20 70 73 20 2b 20 | 42 41 4e 44 28 70 74 72 |:= ps + |BAND(ptr| |00000f20| 28 6f 72 64 28 68 5e 29 | 20 2b 20 70 73 29 5e 2c |(ord(h^)| + ps)^,| |00000f30| 20 24 46 46 29 20 2b 20 | 31 3b 0d 09 09 09 74 20 | $FF) + |1;....t | |00000f40| 3a 3d 20 27 27 3b 0d 09 | 09 09 65 72 72 20 3a 3d |:= '';..|..err :=| |00000f50| 20 4d 75 6e 67 65 72 28 | 68 2c 20 70 73 2c 20 6e | Munger(|h, ps, n| |00000f60| 69 6c 2c 20 30 2c 20 40 | 74 2c 20 6c 65 6e 67 74 |il, 0, @|t, lengt| |00000f70| 68 28 74 29 20 2b 20 31 | 29 3b 0d 09 09 09 69 6e |h(t) + 1|);....in| |00000f80| 64 65 78 48 61 6e 64 6c | 65 28 68 29 5e 5e 20 3a |dexHandl|e(h)^^ :| |00000f90| 3d 20 63 6f 75 6e 74 20 | 2b 20 31 3b 0d 09 09 65 |= count |+ 1;...e| |00000fa0| 6e 64 3b 0d 09 09 53 65 | 74 49 6e 64 53 74 72 48 |nd;...Se|tIndStrH| |00000fb0| 28 68 2c 20 69 6e 64 65 | 78 2c 20 73 29 0d 09 65 |(h, inde|x, s)..e| |00000fc0| 6e 64 3b 0d 0d 09 70 72 | 6f 63 65 64 75 72 65 20 |nd;...pr|ocedure | |00000fd0| 49 6e 73 49 6e 64 53 74 | 72 69 6e 67 20 28 69 64 |InsIndSt|ring (id| |00000fe0| 3a 20 69 6e 74 65 67 65 | 72 3b 20 69 6e 64 65 78 |: intege|r; index| |00000ff0| 3a 20 6c 69 6e 65 49 6e | 64 65 78 3b 20 73 3a 20 |: lineIn|dex; s: | |00001000| 73 74 72 32 35 35 29 3b | 0d 09 09 76 61 72 0d 09 |str255);|...var..| |00001010| 09 09 68 3a 20 68 61 6e | 64 6c 65 3b 0d 09 62 65 |..h: han|dle;..be| |00001020| 67 69 6e 0d 09 09 68 20 | 3a 3d 20 47 65 74 52 65 |gin...h |:= GetRe| |00001030| 73 6f 75 72 63 65 28 27 | 53 54 52 23 27 2c 20 69 |source('|STR#', i| |00001040| 64 29 3b 0d 09 09 48 4e | 6f 50 75 72 67 65 28 68 |d);...HN|oPurge(h| |00001050| 29 3b 0d 09 09 49 6e 73 | 49 6e 64 53 74 72 48 28 |);...Ins|IndStrH(| |00001060| 68 2c 20 69 6e 64 65 78 | 2c 20 73 29 3b 0d 09 09 |h, index|, s);...| |00001070| 48 50 75 72 67 65 28 68 | 29 3b 0d 09 09 43 68 61 |HPurge(h|);...Cha| |00001080| 6e 67 65 64 52 65 73 6f | 75 72 63 65 28 68 29 3b |ngedReso|urce(h);| |00001090| 0d 09 09 57 72 69 74 65 | 52 65 73 6f 75 72 63 65 |...Write|Resource| |000010a0| 28 68 29 3b 0d 09 65 6e | 64 3b 0d 0d 65 6e 64 2e |(h);..en|d;..end.| |000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001100| 00 00 01 00 00 00 01 7c | 00 00 00 7c 00 00 00 62 |.......||...|...b| |00001110| 05 62 3a 72 00 12 00 d2 | 41 32 3b 10 06 4e fb 10 |.b:r....|A2;..N..| |00001120| 00 00 0e 00 12 00 16 00 | 1c 00 22 00 28 7e 7e 60 |........|..".(~~`| |00001130| 08 49 43 53 74 72 68 2e | 70 00 02 00 00 00 54 45 |.ICStrh.|p.....TE| |00001140| 58 54 50 4a 4d 4d 01 00 | 01 04 00 c0 00 00 00 00 |XTPJMM..|........| |00001150| 00 00 54 45 58 54 50 4a | 4d 4d 01 00 01 04 00 c0 |..TEXTPJ|MM......| |00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001170| 00 00 a6 0a 28 b5 00 00 | 10 30 00 00 01 de 0c 4e |....(...|.0.....N| |00001180| ad 05 9a 2f 2e 00 0c 2f | 0c 2f 0b 4e ba fe c8 20 |.../.../|./.N... | |00001190| 0b 4f ef 00 1c 4c ee 18 | 80 fe f4 4e 5e 4e 75 89 |.O...L..|...N^Nu.| |000011a0| 77 68 79 4e 6f 45 64 69 | 74 00 00 4e 56 00 00 48 |whyNoEdi|t..NV..H| |000011b0| e7 01 08 1e 2e 00 13 70 | 00 10 07 0c 40 00 02 66 |.......p|....@..f| |000011c0| 04 70 00 60 30 70 00 10 | 07 0c 40 00 03 66 06 3e |.p.`0p..|..@..f.>| |000011d0| 3c 00 88 60 04 3e 3c 00 | 87 70 00 2f 00 48 c7 2f |<..`.><.|.p./.H./| |000011e0| 07 4e ba f8 e2 28 40 2f | 2e 00 0c 2f 0c 2f 2e 00 |.N...(@/|..././..| |000011f0| 08 4e ba fe 62 4c ee 10 | 80 ff f8 4e 5e 4e 75 91 |.N..bL..|...N^Nu.| |00001200| 00 00 00 1e 00 55 00 7f | 03 68 02 9c 00 50 00 20 |.....U..|.h...P. | |00001210| 03 63 02 3d 00 00 09 d4 | 00 00 00 00 00 00 00 00 |.c.=....|........| |00001220| 00 00 00 00 00 0a 01 ed | 00 40 02 c9 02 30 00 00 |........|.@...0..| |00001230| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....| |00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001250| 00 00 00 00 00 00 00 03 | 00 08 00 40 00 14 03 52 |........|...@...R| |00001260| 02 78 00 40 00 14 03 52 | 02 78 aa 2a 2b eb 00 00 |.x.@...R|.x.*+...| |00001270| 0e 0e 00 00 0e 14 00 00 | 0a 10 01 00 00 00 01 00 |........|........| |00001280| 00 00 01 7c 00 00 00 7c | 00 00 00 62 01 0c 8c 94 |...|...||...b....| |00001290| 12 5e 00 00 00 1c 00 52 | 00 01 4d 50 53 52 00 01 |.^.....R|..MPSR..| |000012a0| 00 12 53 5f 57 50 00 00 | 00 2a 03 f0 ff ff 00 00 |..S_WP..|.*......| |000012b0| 00 00 00 00 00 00 03 ed | ff ff 00 00 00 30 00 00 |........|.....0..| |000012c0| 00 00 22 8a 00 00 00 00 | 00 22 00 00 00 00 0f 57 |..".....|.".....W| |000012d0| 69 6e 64 6f 77 20 50 6f | 73 69 74 69 6f 6e 00 00 |indow Po|sition..| |000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+